package io.objectinputstream;

import io.objectoutputstream.Person;

import java.io.File;
import java.io.FileInputStream;
import java.io.ObjectInputStream;
import java.util.List;

public class Demo01ObjectInputStream {
    public static void main(String[] args) throws Exception {
        ObjectInputStream ois = new ObjectInputStream(new FileInputStream(new File("F://Test//T4//write.txt")));
        List<Person> list = (List<Person>) ois.readObject();
        System.out.println(list);
    }
}
